/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.starmeep.client;

import com.google.gwt.user.client.rpc.AsyncCallback;
import java.util.ArrayList;
import java.util.Map;
import java.util.HashMap;
import org.starmeep.classes.StarJob;
import org.starmeep.config.ConfigStarCluster;

/**
 *
 * @author CARLOS
 */
public interface GWTServiceAsync {
    
   public void finalizaConfiguration(Map data,AsyncCallback<Boolean> callback);
    public void launchCluster(Map data, AsyncCallback<String> callback);
    public void viewJobs(Map data, AsyncCallback<String> callback);
    public void viewHostStatus(Map data, AsyncCallback<String> callback);
    public void showFiles(String jobName, AsyncCallback<ArrayList<Map>> callback);
    public void enterCommand(String nameJob,String command, AsyncCallback<String> callback);
    public void downloadFile(Map data, AsyncCallback<String> callback);
    public void isClusterRunning(AsyncCallback<Map> callback);
    public void RunJob(String job,AsyncCallback<String> callbackRunJob);
    public void deleteJob(String jobName,AsyncCallback<String> callbackDeleteJob);
    public void checkJob(String idJob,AsyncCallback<String> callbackCheckJob);
    public void loadConfiguration(AsyncCallback<Map> callback);
   // public String createJob(Map data, AsyncCallback<String> callback);
}
